package com.design.pattern.strategy.handler;

import com.design.pattern.strategy.enums.AddWorkerEnum;
import org.springframework.stereotype.Service;

/**
 * @ClassName OneHandle
 * @Description 测试实现1
 * @Author chen
 * @Date 2020/5/29 15:03
 */
@Service
public class OneHandle extends AbstractSyncDataHandle{

    /**
     * 设置流水号
     * @return
     */
    @Override
    public String getBussNumber() {
        return AddWorkerEnum.ONE.getCode();
    }


    @Override
    public void createWorker() {
       System.out.println( "执行方法1" );
    }
}
